<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Kibana Docker 方式安装 oss 版  只有 Discover、Visualize、Dashboards、Dev Tools 功能
 $ docker pull docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3 $ docker pull docker.elastic.co/kibana/kibana-oss:7.9.3 # 启动 ElasticSearch $ docker run \  -d \  -p 9200:9200 -p 9300:9300 \  -v /etc/localtime:/etc/localtime \  -e ES_JAVA_OPTS=&#34;-Xms1g -Xmx1g&#34; \  -e discovery.type=&#34;single-node&#34; \  --name=elasticsearch-oss \  docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3 # 启动 Kibana ## /usr/share/kibana/ $ docker run \  -d \  -p 5601:5601 \  --name kibana-oss \  -v /etc/localtime:/etc/localtime \  -e ELASTICSEARCH_HOSTS=&#39;http://192."><meta property="og:title" content="" />
<meta property="og:description" content="Kibana Docker 方式安装 oss 版  只有 Discover、Visualize、Dashboards、Dev Tools 功能
 $ docker pull docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3 $ docker pull docker.elastic.co/kibana/kibana-oss:7.9.3 # 启动 ElasticSearch $ docker run \  -d \  -p 9200:9200 -p 9300:9300 \  -v /etc/localtime:/etc/localtime \  -e ES_JAVA_OPTS=&#34;-Xms1g -Xmx1g&#34; \  -e discovery.type=&#34;single-node&#34; \  --name=elasticsearch-oss \  docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3 # 启动 Kibana ## /usr/share/kibana/ $ docker run \  -d \  -p 5601:5601 \  --name kibana-oss \  -v /etc/localtime:/etc/localtime \  -e ELASTICSEARCH_HOSTS=&#39;http://192." />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://hello-world-example.gitee.io/kibana/docs/Kibana-Install-By-Docker/" />
<meta property="article:modified_time" content="2023-06-03T16:45:08+08:00" />
<title>Kibana Install by Docker | Kibana</title>
<link rel="icon" href="/kibana/favicon.png" type="image/x-icon">


<link rel="stylesheet" href="/kibana/book.min.00b8e784201abfe629a6e0741e94bf44575af8612aec171d94e4ecbd3692cf5c.css" integrity="sha256-ALjnhCAav&#43;YppuB0HpS/RFda&#43;GEq7BcdlOTsvTaSz1w=">


<!--
Made with Book Theme
https://github.com/alex-shpak/hugo-book
-->

  
</head>

<body>
  <input type="checkbox" class="hidden" id="menu-control" />
  <main class="container flex">
    <aside class="book-menu">
      
  <nav>
<h2 class="book-brand">
  <a href="/kibana"><span>Kibana</span>
  </a>
</h2>












  <ul>
<li>
  <a href="/kibana/docs/Index/">Quick Start</a></li>
<li>
  <a href="/kibana/docs/Kibana-Install-By-Docker/"class=active>Kibana Docker 方式安装</a></li>
</ul>
<hr>
<ul>
<li>
  <a href="https://hello-world-example.gitee.io/elasticsearch/">🔗 ElasticSearch</a></li>
<li>
  <a href="https://hello-world-example.gitee.io/elasticbeats/">🔗 Beats</a></li>
<li>
  <a href="https://hello-world-example.gitee.io/elasticlogstash/">🔗 LogStash</a></li>
</ul>










</nav>




  <script>(function(){var menu=document.querySelector("aside.book-menu nav");addEventListener("beforeunload",function(event){localStorage.setItem("menu.scrollTop",menu.scrollTop);});menu.scrollTop=localStorage.getItem("menu.scrollTop");})();</script>


 
    </aside>

    <div class="book-page">
      <header class="book-header">
        
  <div class="flex align-center justify-between">
  <label for="menu-control">
    <img src="/kibana/svg/menu.svg" class="book-icon" alt="Menu" />
  </label>

  <strong>Kibana Install by Docker</strong>

  <label for="toc-control">
    <img src="/kibana/svg/toc.svg" class="book-icon" alt="Table of Contents" />
  </label>
</div>


  
    <input type="checkbox" class="hidden" id="toc-control" />
    <aside class="hidden clearfix">
      
  <nav id="TableOfContents">
  <ul>
    <li><a href="#kibana-docker-方式安装">Kibana Docker 方式安装</a></li>
    <li><a href="#oss-版">oss 版</a>
      <ul>
        <li><a href="#非-oss-版">非 OSS 版</a></li>
        <li><a href="#read-more">Read More</a></li>
      </ul>
    </li>
  </ul>
</nav>


    </aside>
  
 
      </header>

      
      
  <article class="markdown"><h1 id="kibana-docker-方式安装">Kibana Docker 方式安装</h1>
<h1 id="oss-版">oss 版</h1>
<blockquote>
<p>只有 <strong>Discover</strong>、<strong>Visualize</strong>、<strong>Dashboards</strong>、<strong>Dev Tools</strong> 功能</p>
</blockquote>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">$ docker pull docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3
$ docker pull docker.elastic.co/kibana/kibana-oss:7.9.3

<span style="color:#75715e"># 启动 ElasticSearch</span>
$ docker run <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -d <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -p 9200:9200 -p 9300:9300 <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -v /etc/localtime:/etc/localtime <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -e ES_JAVA_OPTS<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;-Xms1g -Xmx1g&#34;</span> <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -e discovery.type<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;single-node&#34;</span> <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  --name<span style="color:#f92672">=</span>elasticsearch-oss <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  docker.elastic.co/elasticsearch/elasticsearch-oss:7.9.3



<span style="color:#75715e"># 启动 Kibana</span>
<span style="color:#75715e">## /usr/share/kibana/</span>
$ docker run <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -d <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -p 5601:5601 <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  --name kibana-oss <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -v /etc/localtime:/etc/localtime <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -e ELASTICSEARCH_HOSTS<span style="color:#f92672">=</span><span style="color:#e6db74">&#39;http://192.168.31.164:9200&#39;</span> <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  docker.elastic.co/kibana/kibana-oss:7.9.3
  

<span style="color:#75715e"># 删除</span>
$ docker rm -f elasticsearch-oss
$ docker rm -f kibana-oss
</code></pre></div><h2 id="非-oss-版">非 OSS 版</h2>
<blockquote>
</blockquote>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">$ docker pull docker.elastic.co/elasticsearch/elasticsearch:7.9.3
$ docker pull docker.elastic.co/kibana/kibana:7.9.3

<span style="color:#75715e"># 启动 ElasticSearch</span>
$ docker run <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -d <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -p 9200:9200 -p 9300:9300 <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -v /etc/localtime:/etc/localtime <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -e ES_JAVA_OPTS<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;-Xms1g -Xmx1g&#34;</span> <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -e discovery.type<span style="color:#f92672">=</span><span style="color:#e6db74">&#34;single-node&#34;</span> <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  --name<span style="color:#f92672">=</span>elasticsearch <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  docker.elastic.co/elasticsearch/elasticsearch:7.9.3



<span style="color:#75715e"># 启动 Kibana</span>
<span style="color:#75715e">## /usr/share/kibana/config/</span>
<span style="color:#75715e">## /usr/share/kibana/data</span>
<span style="color:#75715e">## /usr/share/kibana/plugins</span>
$ docker run <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -d <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -p 5601:5601 <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  --name kibana <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -v /etc/localtime:/etc/localtime <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  -e ELASTICSEARCH_HOSTS<span style="color:#f92672">=</span><span style="color:#e6db74">&#39;http://192.168.31.164:9200&#39;</span> <span style="color:#ae81ff">\
</span><span style="color:#ae81ff"></span>  docker.elastic.co/kibana/kibana:7.9.3
</code></pre></div><h2 id="read-more">Read More</h2>
<ul>
<li>
  <a href="https://www.elastic.co/guide/en/kibana/7.9/docker.html">Install Kibana with Docker | Kibana Guide 7.9 | Elastic</a></li>
<li>
  <a href="https://www.docker.elastic.co/">Docker @ Elastic</a></li>
<li>
  <a href="https://mp.weixin.qq.com/s/CQjsoGdHYolJTqW9LAvByw">Docker 安装 ElasticSearch 快速开始 (qq.com)</a></li>
</ul>
</article>
 
      

      <footer class="book-footer">
        
  <div class="flex justify-between">



  <div>
    
    <a class="flex align-center" href="https://gitee.com/hello-world-example/Kibana/commit/294d3c6c1ba2726c7bacaa07031ddfd9bf40d9d9" title='Last modified by kaibin.yang | Jun 3, 2023' target="_blank" rel="noopener">
      <img src="/kibana/svg/calendar.svg" class="book-icon" alt="Calendar" />
      <span>Jun 3, 2023</span>
    </a>
  </div>



  <div>
    <a class="flex align-center" href="https://gitee.com/hello-world-example/Kibana/edit/master/HuGo/content/docs/Kibana-Install-By-Docker.md" target="_blank" rel="noopener">
      <img src="/kibana/svg/edit.svg" class="book-icon" alt="Edit" />
      <span>Edit this page</span>
    </a>
  </div>

</div>

 
        <script>
    var images = document.getElementsByTagName("img")
    for (var i = 0; i < images.length; i++) {
        var image = images[i]
        var src = image.getAttribute("src");
         
        if (src.startsWith("-images")) {
            image.setAttribute("src", "../" + src)
        }
         
        if (window.location.href.indexOf("/posts/")) {
            src = src.replace("../drawio/", "../../drawio/")
            image.setAttribute("src", src)
        }
         
        if (src.startsWith("../drawio/")) {
            image.setAttribute("src", src.replace("../drawio/", "../"))
        }

         
        if(src.indexOf("/svg/") < 0){
             
            image.onclick = function (e) {
                window.open(e.target.getAttribute("src"))
            }
        }
    }

</script>

      </footer>

      
  
  <div class="book-comments">

</div>
  
 

      <label for="menu-control" class="hidden book-menu-overlay"></label>
    </div>

    
    <aside class="book-toc">
      
  <nav id="TableOfContents">
  <ul>
    <li><a href="#kibana-docker-方式安装">Kibana Docker 方式安装</a></li>
    <li><a href="#oss-版">oss 版</a>
      <ul>
        <li><a href="#非-oss-版">非 OSS 版</a></li>
        <li><a href="#read-more">Read More</a></li>
      </ul>
    </li>
  </ul>
</nav>

 
    </aside>
    
  </main>

  
</body>

</html>












